
            nums = eval(file.readline())
            for j in range(nums):
                tmp = file.readline().strip()[1:-1]
                if tmp[:3] == 'add':